package cn.bone.ou.community.mapper;

import cn.bone.ou.community.bean.Community;
import cn.bone.ou.community.dto.CommunityDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface CommunityMapper extends BaseMapper<Community> {

    /**列表查询数据*/
    List<CommunityDto.ListDto> list(@Param("start")Integer start,
                                    @Param("num")Integer num,
                                    @Param("name")String name,
                                    @Param("regionNo")String regionNo,
                                    @Param("startDay") Date startDay,
                                    @Param("endDay")Date endDay,
                                    @Param("usable")Integer usable,
                                    @Param("mng")Integer mng);

    /**列表查询总数*/
    int countList(@Param("name")String name,
                  @Param("regionNo")String regionNo,
                  @Param("startDay")Date startDay,
                  @Param("endDay")Date endDay,
                  @Param("usable")Integer usable,
                  @Param("mng")Integer mng);
}
